package top.jinlijun.heytea.mapper;

import top.jinlijun.heytea.entities.Address;
import top.jinlijun.heytea.entities.User;

import java.util.List;

public interface LoginMapper {

    //根据电话号码查询用户
    public User findUserByTel(User user);
    //根据邮件查询用户
    public User findUserByEmail(User user);
    //根据Id查询用户
    public User findUserById(User user);
    //注册用户
    public void InsertUser(User user);
    //获取某用户下的所有地址
    public List<Address> getAddressList(User user);
    //添加地址
    public void insertAddress(Address address);
    //取消默认地址
    public void cancelDefault(User user);
    //设置默认地址
    public void setDefault(Address address);
    //获取用户信息
    public void updateUser(User user);
}
